package javaer.starter.util;

/**
 * @author yangzhen
 * @date 2023/6/12 16:40
 * @since 1.0.0
 */
public class HumpUtil {

    public static String toHump(String data, String symbol) {
        String[] items = data.split(symbol);
        StringBuffer buffer = new StringBuffer();
        for (String item : items) {
            buffer.append(item.substring(0, 1).toUpperCase()).append(item.substring(1));
        }
        return buffer.toString();
    }
}
